package io.adrainty.bolee.security.hystrix;

import io.adrainty.bolee.framework.commons.basic.ResponseCode;
import io.adrainty.bolee.framework.commons.basic.ResultDTO;
import io.adrainty.bolee.framework.commons.utils.ResultDTOUtil;
import io.adrainty.bolee.security.feign.ICompanyFeign;
import io.adrainty.bolee.security.models.entity.CompanyEntity;
import org.springframework.stereotype.Component;

/**
 * <p>CompanyFeignHystrix</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description CompanyFeignHystrix
 * @since 2025/8/1 14:14:00
 */

@Component
public class CompanyFeignHystrix implements ICompanyFeign {

    @Override
    public ResultDTO<Boolean> refreshCompanyWebsiteCache() {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<CompanyEntity> findCompanyEntity(String companyNo) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

}
